package com.hao.serviceImpl;

import com.hao.Dao.productDao;
import com.hao.DaoImpl.productImpl;
import com.hao.entity.product;
import com.hao.service.productservice;

import java.util.List;

/**
 * Created by Administrator on 2018/7/28.
 */
public class productserviceImpl implements productservice {
    @Override
    public List<product> find(String enumber) {
        productDao dao=new productImpl();

        return dao.find(enumber);
    }

    @Override
    public int dele(int id) {
        productDao dao=new productImpl();
        return dao.dele(id);
    }

    @Override
    public product updfind(int id) {
        productDao dao=new productImpl();
        return dao.updfind(id);
    }

    @Override
    public int upd(product upd) {
        productDao dao=new productImpl();
        return dao.upd(upd);
    }

    @Override
    public int add(product add) {
        productDao dao=new productImpl();
        return dao.add(add);
    }
}
